


#define F_CPU 3686400  // 1 MHz
#include <avr/io.h>
#include <util/delay.h>

#include "i2cDriver.h"
#include "PCF8575Driver.h"


int main(void)
{

	unsigned char exPort0 = 0b11110000;
	unsigned char exPort1 = 0b11110000;


	DDRD = 0xFF;	//Set PORTD as Output
	PORTD = 0x00;	

	initExpander();

	while(1)
	{

		//readIOExpander(&exPort0,&exPort1);

		//PORTD = exPort1;

		writeIOExpander(exPort0,exPort1);

	}

	return 0;

}
